package com.crrc.dataparse.monitor.rsp.service.parse.treat.templatepara.datatrans;

import com.crrc.dataparse.templatepara.IDataTrans;

/*
     2进制转字符串
 */
public class BinaryToString2 extends IDataTrans {
    public BinaryToString2() {
    }

    @Override
    public String trans(String value, double resolusion, double offset) throws Exception {
// TODO: 2023/12/27/027 此处需根据实际情况看是否需要每8位进行拆分
        long ss = Long.valueOf(value, 2);
        String result = Long.toString(ss);
        return result;
    }
}
